home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Python 1.4 / Python 1.4 source / Mac / Tools / twit / tktwit_mod.py < prev    next >
Encoding:
Text File  |  1996-10-04  |  1.0 KB  |  40 lines  |  [TEXT/Pyth]

  1. # A stab at a python debugger
  2. import sys
  3. import TwitCore
  4.  
  5.  
  6. class ModuleBrowser(TwitCore.ModuleBrowser):
  7.     """The module-browser dialog - Tk-dependent part"""
  8.     def open(self, module):
  9.         pass # Open our window, initialize widgets
  10.  
  11.         self.mi_open(module)    
  12.         
  13.     def setsource(self, msg):
  14.         if self.cur_source:
  15.             pass # Show current source, fill source window
  16.         else:
  17.             pass # Show msg, clear source window
  18.  
  19.     def source_setbreaks(self, list):
  20.         pass # Show breakpoints at linenumbers in list
  21.  
  22.     def setmodulenames(self):
  23.         pass # Load self.cont_modules into browser
  24.  
  25.     def module_select(self, number):
  26.         pass # Select module number (or None)
  27.  
  28.     def setvars(self):
  29.         pass Load self.cont_varnames, self.cont_varvalues into browser
  30.         
  31.     def close(self):
  32.         self.parent.module_dialog = None
  33.         pass # close window, widgets, etc.
  34.  
  35.     # Callbacks:
  36.     # self.click_module(name) when a module is selected
  37.     # self.click_var(var) when a var is double-clicked
  38.     # self.click_source(lineno, inborber) when a source line is clicked
  39.     # self.click_edit() when the edit button is clicked
  40.